<?php
namespace App;
class Apple {
    protected $water;
    public function __construct(Water $water)
    {
        $this->water = $water;
    }

    public function water()
    {
        if (!$this->water->drying())
        {
            echo $this->water->get().'洗苹果';
            echo "<br>";
        }
        echo '请取苹果';

    }
}